const fs = require("fs");
const path = require("path");

const oldPath = path.join(__dirname,"/1.txt");

const newPath = path.join(__dirname,"/10.txt");

fs.renameSync(oldPath,newPath);